<?php

/**
 * 后台栏目验证器
 * @author  xiaobai
 * @date    2017-01-08
 */

namespace app\common\validate;

use think\Validate;

class News extends Validate
{
    
    protected $rule = [
        'column_id'   => 'require',
        'title'       => 'require',
        'keywords'    => 'require',
        'description' => 'require',
        'content'     => 'require',
        'read_number' => 'number',
    ];

    protected $message = [
        'column_id'   => '请选择文章所属栏目',
        'title'       => '文章标题不能为空',
        'keywords'    => '关键词不能为空',
        'description' => '文章描述不能为空',
        'content'     => '文章内容不能为空',
        'read_number' => '阅读量只能为数字',
    ];

}
